package entity;

import java.sql.Timestamp;
import java.time.Duration;
import java.time.LocalDateTime;

public class Check_inRecords {
    private String id;
    private String name;
    private LocalDateTime Check_inTime=null;
    private Duration duration;

    public Check_inRecords(String id, String name, Timestamp timestamp, Duration duration) {
        this.id = id;
        this.name = name;
        if(timestamp!=null) this.Check_inTime =timestamp.toLocalDateTime();
        this.duration = duration;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDateTime getCheck_inTime() {
        return Check_inTime;
    }

    public void setCheck_inTime(LocalDateTime check_inTime) {
        Check_inTime = check_inTime;
    }

    public Duration getDuration() {
        return duration;
    }

    public void setDuration(Duration duration) {
        this.duration = duration;
    }
}
